import request from '@/service/request'
// 模拟请求 mock-js
/* 广场 page接口
* @param {Object} params 搜索参数
*  */
export const pagePlaygroundMockApi = (params) => {
    return request.post('/mock/playground/page', params)
}

/* 广场 page接口
* @param {number} id
*  */
export const getPlaygroundByIdMockApi = (id) => {
    return request.post(`/mock/playground/get/${id}`)
}

/* 广场  save接口
* @param {number} id
*  */
export const savePlaygroundMockApi = (params) => {
    return request.post('/mock/playground/save', params)
}

/* 广场  del接口
* @param {number} id
*  */
export const delPlaygroundByIdMockApi = (id) => {
    return request.post(`/mock/playground/del/${id}`)
}
